package com.book.xsp.bookparent.service;

import com.book.xsp.bookparent.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.book.xsp.bookparent.entity.vo.AddCourseVo;
import com.book.xsp.bookparent.entity.vo.EditCourseVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author snake_skin
 * @since 2023-11-28
 */
public interface ICourseService extends IService<Course> {
    List<Course> getAllCourse();

    boolean addCourse(AddCourseVo course);

    boolean editCourse(EditCourseVo course);

    boolean deleteCourse(Long id);

    Long getCourseIdByName(String courseName);
}
